@ledbelly2142 Not yet, I did read somewhere here that the battery voltage is connected to ADC pin 16 so it should be possible. Hoping for an example that can report it as a Battery percentage.
I'd like to have the following Topic structure on my LoPy's MQTT topic:
lopy/ip
lopy/probes/1
...
lopy/probes/4
lopy/battery
lopy/rgb
lopy/oled/1
...
lopy/oled/4
lopy/ble
Cant think of any more yet. Still not sure how i'll go with my plan of 4x SPI Type K temp probes and 4x 128x32 OLEDs as they are SPI as well and require more than just a CS per screen.
Reporting on the Battery topic would be things like percentage when it hits internal warning levels.. but with the view to using deep sleep it would probably report on wake up. Also a notification when its charging if at all possible would be nice.
I changed the IP topic and paylod to this btw
client.publish(topic="lopy/ip", msg=wifiaddress)
And on the far end I use Node-red to append to the front:
"LoPy Booted with IP: " + msg.payload;
*node red function code - not micropython
And send the string to Pushover for a push notification on my phone. I've also mapped the on board button to do a machine.reset() so I can carry it around, hit reset then get a notification on my phone if it connects to WiFi (good for range testing).